package com.woniuxy.member.client;

import com.woniuxy.member.client.param.SearchFoodTypeParam;
import com.woniuxy.member.client.param.SearchSpuParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

@FeignClient(contextId = "memberFoodQueryClient",name="member",path="member")
public interface MemberFoodQueryClient {

    @GetMapping("/searchAllSpu")
    public Result searchAllSpuByStoreId(@SpringQueryMap SearchSpuParam searchSpuParam);

    @GetMapping("/searchSkuBySpuId")
    public Result searchSkuBySpuId(@RequestParam("spuId")Integer spuId);

    @GetMapping("/searchFoodType")
    public Result searchFoodType(@SpringQueryMap SearchFoodTypeParam searchFoodTypeParam);
}
